feat(analysis): fold non-highlighted lines in the LOG viewer#27
Merged
Conversation
added 3 commits
June 23, 2026 17:57
Add a fold toggle (default off, Alt+F opens the log dir) that collapses runs of non-highlighted lines into a full-width fold bar above the next line. Expanding shows a collapse bar above and below the run, and the revealed lines flash once to point out which section opened. Folding is implemented as a row model on top of the virtualized viewer so scroll, bookmarks, nav, find and the minimap stay correct.
Expanded fold bars now carry a navigation arrow: the top bar jumps to the bottom of the section, the bottom bar jumps to the top. Toggling a highlight level off now also folds its lines, since only enabled levels count as highlighted.
Mirror the expand flash: collapsing a run now briefly pulses the resulting fold bar so it's clear where the hidden lines went.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a fold feature to the LOG Analysis viewer that collapses runs of non-highlighted lines so only highlighted content stays visible. Built as a row model on top of the existing virtualized renderer, so scrolling, bookmarks, navigation, find and the minimap stay correct.
Features
+ N).− 收折collapse bar both above and below the revealed lines so it can be re-folded from either end.Implementation
anaBuildRows()builds arowsmodel (line rows + fold-placeholder rows) withlineRow/lineDisplayRowmaps so every line-index API (scroll, bookmarks, nav, find, ruler ticks) keeps working through the fold layer.Testing
npm testpasses (4/4: i18n key parity, data-i18n keys exist, highlight regex valid, no duplicate IDs).